<%@page import="Interface.Entity"%>
<%@page import="session.SessionInterface"%>
<%@page import="GUI.EntityGUI"%>
<%@page import="GUI.LanguageLoader"%>
<%
            String name = request.getParameter("entity");
            String attribute = request.getParameter("attribute");
            SessionInterface sessione = new SessionInterface();
            LanguageLoader language = new LanguageLoader();
            Entity entity;
            if (null != session.getAttribute("username")) {
                entity = new EntityGUI(name, session.getAttribute("username").toString(), session.getAttribute("gruppo").toString());
            } else {
                entity = new EntityGUI(name);
            }
            EntityGUI eGUI = (EntityGUI) entity;
            eGUI.setAttributeValueSuperMode("username", session.getAttribute("username").toString());
            entity = sessione.load(entity);

            eGUI = (EntityGUI) entity;
%>

<form>
    <%= eGUI.getHTMLforOneInputForInsert(attribute)%>
    <br>
    <div class="descrizione"><b>*<%= language.getSysCaption("formSecurityMessage")%></b></div>
    <div style="display: none;" id="okButton">
        <input type="submit" value="<%= language.getSysCaption("confirmButton")%>" />
    </div>
</form>
        <input type="button" onclick="closeLoadMode()" value="<%= language.getSysCaption("exitButton") %>" />